<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Document</title>
		<script>
			//方法一
			/*var first=prompt('请输入第一个数字')
			var second=prompt('请输入第二个数字')
			var third=prompt('请输入第三个数字')
			if (first>second&&first>third) {console.log(first)}
				else if (second>first&&second>third) {console.log(second)}else{console.log(third)}*/

			//方法二
		    var first=Number(prompt('请输入第一个数字'))
			var second=Number(prompt('请输入第二个数字'))
			var third=Number(prompt('请输入第三个数字'))

			max1=first>second?first:third;
			max2=max1>third?max1:third;
			

			console.log(max2)


		

			





		</script>
	</head>
	<body>
		
	</body>
</html>